package com.sl.auth.modular.login.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sl.auth.modular.login.entity.SaTokenDO;

import java.util.List;

public interface SaTokenDaoService extends IService<SaTokenDO> {
    SaTokenDO getBySaKey(String key);

    Boolean updateValueByKey(String value, String key);

    Boolean deleteByKey(String key);

    Boolean updateTimeoutByKey(long timeout, String key);

    List<SaTokenDO> queryValidKey();


    List<SaTokenDO> queryBySearchKey(String keyword);
}
